package com.nanyang.tms.dao.bill;

import com.nanyang.tms.domain.bill.BillRecordDO;
import com.nanyang.tms.domain.bill.BillRecordQuery;
import com.nanyang.tms.domain.bill.BillRecordVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>Description:(对账单账单明细表)</p>
 *
 * @author lv
 * @date 2022年12月14日 下午02:25:00
 * @Copyright Copyright (c) 2020 www.nanyang.cn Inc. All rights reserved.
 */
@Mapper
public interface BillRecordDao {
    /**
     * <p>deleteByPrimaryKey</p>
     * <p>Description:(根据主键删除)</p>
     *
     * @param id
     * @return int
     */
    int deleteByPrimaryKey(Long id);

    /**
     * <p>insert</p>
     * <p>Description:(新增（所有列）)</p>
     *
     * @param record
     * @return int
     */
    int insert(BillRecordDO record);

    /**
     * <p>selectByPrimaryKey</p>
     * <p>Description:(根据主键查询)</p>
     *
     * @param id
     * @return BillRecordDO
     */
    BillRecordDO selectByPrimaryKey(Long id);

    /**
     * <p>updateByPrimaryKeySelective</p>
     * <p>Description:(修改(选择的列))</p>
     *
     * @param record
     * @return int
     */
    int update(BillRecordDO record);

    /**
     * <p>countBillRecord</p>
     * <p>Description:总数</p>
     *
     * @param query
     * @return
     */
    Integer countBillRecord(BillRecordQuery query);

    /**
     * <p>listBillRecord</p>
     * <p>Description:列表</p>
     *
     * @param query
     * @return
     */
    List<BillRecordVO> listBillRecord(BillRecordQuery query);

    /**
     *
     * @param billCode
     * @return
     */
    List<BillRecordVO> listRecordByBillCode(String billCode);

    /**
     *
     * @param billRecordCode
     * @return
     */
    BillRecordVO selectByCode(String billRecordCode);

    /**
     * 更新状态已处理
     * @return
     */
    int updateState(BillRecordDO record);
}